{"version":3,"sources":["grid.js"],"names":["BX","namespace","UI","AccessRights","options","this","renderTo","buttonPanel","ButtonPanel","layout","container","component","actionSave","actionDelete","actionLoad","mode","openPopupEvent","popupContainer","additionalSaveParams","loadParams","loader","timer","initData","userGroups","accessRights","isRequested","loadData","bindEvents","prototype","addCustomEvent","updateRole","bind","updateAccessRight","adjustButtonPanel","addUserGroup","addRoleColumn","removeRoleColumn","onGetEntityTypes","accessRightsSections","headSection","members","columns","fireEventReset","onCustomEvent","window","fireEventRefresh","getButtonPanel","showNotification","title","Notification","Center","notify","content","position","autoHideDelay","sendActionRequest","setTimeout","blockGrid","needReload","dataToSave","i","length","id","push","accessCodes","type","ajax","runComponentAction","data","parameters","then","reloadGrid","message","unBlockGrid","clearTimeout","getContainer","querySelector","classList","remove","lock","getMainContainer","add","unlock","deleteActionRequest","roleId","response","ACCESS_RIGHTS","USER_GROUPS","draw","offsetTop","getBoundingClientRect","top","style","height","self","getLoader","show","hide","loadLoaderExtension","Promise","resolve","Loader","loadExt","target","param","removeColumn","map","targetIndex","indexOf","userGroup","splice","sections","newColumn","addColumn","scrollToRight","getColumnsContainer","scrollWidth","offsetWidth","index","text","modifiedItems","querySelectorAll","modifiedRoles","modifiedUsers","accessId","access","item","value","switcher","checked","addSection","getColumns","getSections","getUserGroups","forEach","user","getHeadSection","Section","grid","sectionTitle","rights","getSection","create","props","className","docFragmentSections","document","createDocumentFragment","appendChild","render","innerHTML","afterRender","adjustEars","onMemberSelect","params","option","buildOption","state","onMemberUnselect","controls","Main","selectorManagerV2","selectorInstance","Object","keys","entityTypes","USERGROUPS","enableSearch","searchById","addTab","returnItemUrl","getOption","dataColumnAttribute","node","bindOptions","hasAttribute","columnId","getAttribute","accessItem","entityType","accessCodesResult"],"mappings":"CAAC,WAEA,aAEAA,GAAGC,UAAU,SAEbD,GAAGE,GAAGC,aAAe,SAASC,GAC7BA,EAAUA,MAEVC,KAAKD,QAAUA,EACfC,KAAKC,SAAWF,EAAQE,SACxBD,KA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